package com.lvhaosb.newpneumonia.mapper;

import com.lvhaosb.newpneumonia.POJO.po.Country;
import com.lvhaosb.newpneumonia.POJO.po.ForeignEpidemic;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 国家 Mapper 接口
 *
 * @author lvhao
 * @since 2020-06-21
 */
@Component
public interface CountryMapper {
    /**
     * 查询所有
     *
     * @return
     */
    List<Country> selectAll();

    /**
     * 根据名称查询
     * @param name
     * @return
     */
    List<Country> selectByName(String name);

    /**
     * 插入
     * @param country
     * @return
     */
    int insert(@Param("country") Country country);

}
